Skip to main content

Persistent Service Model Runner Button

Reference Guide

The Persistent Service Model Runner button is a default component in app builder. This component is a button that makes requests to persistent backend services.

Properties

Label

The text to display inside the button.

Loading Label

The text to display inside the button when the request is being made.

Service Name

The name of the backend service to use. Will correspond to a name field in the dais.json file in the backend service's repository.

End Point

The path to use for the HTTP request.

HTTP Method

HTTP method to use: GET or POST.

Timeout

Timeout for the HTTP request in milliseconds.

POST Body

JSON inputs to send in model request body. Only valid when HTTP method is POST.

Query Parameters

JSON object to use for query-parameters. e.g. { query1: 'test' } will compute to a query string of ?query1=test

Autosave

Whether to autosave the scenario after model run completes. Will also save pending submission state if 'Use Project Gateway' is disabled.

Show Play Arrow

Whether to show the 'Play' arrow icon in the button.

Toast on success

Whether to show a toast notification when successful.

Disabled

Boolean value, whether to show the button as disabled. When disabled, the button cannot be pressed.

Outputs Path

Path to write the returned outputs.

Duplicate Inputs

This component will duplicate the inputs used ('POST Body' if using POST, else 'Query Parameters'). Use to keep a duplicate of previous inputs for comparisons.

Metadata Path

When "Use Project Gateway" is disabled, metadata about a running model will be stored here. If used with "Autosave", and the app is exited while the model is running, the model run will be resumed next time you visit the app.

Use Project Gateway

Whether to use project gateway instead of the submissions API. Only the submissions API allows the outputs to be fetched later even if you exit the app during the model run.